package com.common.help.test03;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Test {

	public static void main(String[] args) throws Exception {
		String path = "C:\\Users\\youxiang\\Desktop\\综评表的字段.txt";
		
/*		FileInputStream fis = new FileInputStream(new File(path));
		
		byte[] b = new byte[2048];
		
		int len;
		while((len = fis.read(b))!=-1){
			System.out.println(new String(b, 0, len, "UTF-8"));
		}
		fis.close();*/
		FileInputStream fis = new FileInputStream(new File(path));
		BufferedInputStream bis = new BufferedInputStream(fis);
		byte[] b = new byte[2048];
		int len;
		while((len = bis.read(b))!=-1){
			System.out.println(new String(b, 0, len, "UTF-8"));
		}
		bis.close();
		fis.close();
		
	}
}
